﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace peonwar
{
    class ResearchFive : Research
    {
        private bool used;
        public ResearchFive(Vector2 _position, Texture2D _texture, User au)
            : base(_position, _texture, au)
        {
            name = GameData.GameString[179];
            description = GameData.GameString[180];
            time = 125;
            timer = new Timer(time);
            used = false;
            SonLeft = new ResearchTen(new Vector2(_position.X - 42, _position.Y + 110), GameTexture.Researchs[9], au);
            SonRight = new ResearchEleven(new Vector2(_position.X + 42, _position.Y + 110), GameTexture.Researchs[10], au);
        }

        public override void competance()
        {
            if (!used)
            {
                associatedUser.UpgradeGauss();
                used = true;
            }
        }
    }
}
